package com.example.unveil_the_leader.mapper;

import com.example.unveil_the_leader.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author XCT
* @description 针对表【users】的数据库操作Mapper
* @createDate 2024-01-26 15:58:16
* @Entity com.example.unveil_the_leader.entity.Users
*/

@Mapper
public interface UsersMapper extends BaseMapper<Users> {

    //登录
    //用户名+密码登录
    Users loginByUsername(@Param("username") String username , @Param("password") String password);

    //注册
    int register(Users users);

//    //删除（根据用户id进行删除）
//    int userDelete(@Param("id") int id);
    //修改
    int userUpdate(Users users);

    //根据用户姓名查找
    Users selectByUsername(@Param("username") String username);

    //根据用户qq邮箱查找
    Users selectByQQ(@Param("qq") String qq);


}




